<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="../../head.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script src="${basepath}/res/js/dtree/dtree.js"></script>
<link type="text/css" rel="stylesheet" href="${basepath}/res/js/dtree/dtree.css" />
<style type=text/css>
	.dtree A {
		color: #000000;	
	}
	.dtree{
		color: #000000;
	}
	.treeScrollDiv {
	  overflow-x:auto;
	  overflow-y:auto;
	  scrollbar-face-color : #EDEDED;
	  scrollbar-darkshadow-color : #EDEDED;
	  height: 100%;
	  width: 100%;
	  text-indent: 20px;
	}
</style>
<script>
	function click(url) {
		parent.frames["channelmain"].location.href=url;
	}
</script>
</head>
<body>
  <div class="treeScrollDiv" >&nbsp;
  <script type="text/javascript">
  	treechannel = new dTree("treechannel");
  	var i=0;
  	treechannel.add(0,-1,"分类管理","javascript:click('${basepath}/inner/admin/channel/detail.jsp?id=0');","分类管理");
  	<c:forEach items="${datas}" var="data" varStatus="s" >
		treechannel.add(${data.id},${data.parentId},"${data.name}","javascript:click('${basepath}/channel?m=detail&id=${data.id}');","${data.name}");
  	</c:forEach>
	document.write(treechannel);
	treechannel.config.closeSameLevel=true;
	treechannel.closeAll();
</script>
</div>
</body>
</html>
